﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TTEngine
{
    public class Rope : MapObject
    {
        //constructor
        public Rope()
            : base()
        {
            UnitWeight = 2;
            Flamability = 5;
            CanReady = true;
            CanTake = true;
            HandsRequired = 2;
            AddTag("Climbing Gear");
            LootLevel = 0;
        }

        //clone
        public override MapObject Clone()
        {
            return new Rope();
        }

        //might break when used
        public override bool BreaksWhenStressed(StressType st)
        {
            if (st == StressType.UsedForPrimaryPurpose)
                return Globals.RandomIntFromTo(1, 100) < 5;
            else
                return false;
        }
    }
}
